<!DOCTYPE html>
<html class="">
<head>
<meta charset="utf-8">
<meta http-equiv="content-type" content="text/html" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>[!--pagetitle--]-[!--sitename--]</title>
<meta name="keywords" content="[!--pagekey--]">
<meta name="description" content="[!--pagedes--]">
<link href="/t6/Public/skin/css/animate.min.css" rel="stylesheet">
<link href="/t6/Public/skin/css/font-awesome.min.css" rel="stylesheet">
<link href="/t6/Public/skin/css/nav.css" rel="stylesheet">
<link href="/t6/Public/skin/css/nav2.css" rel="stylesheet">
<link href="/t6/Public/skin/css/slick-min.css" type="text/css" rel="stylesheet"/>
<link href="/t6/Public/skin/css/global.css" rel="stylesheet">
</head>
<body>
[!--public.header--]
<div class="indexProduct UserCenter_nav productDetails_nav">
	<div class="indexProduct_content clear all">{:nav()}</div>
</div>

<div class="indexProduct UserCenter shopping productDetails">
	<div class="indexProduct_content clear all">
		<div class="productDetails_top clear">
			<div class="productDetails_top_left fl">
				<div class="top_left_Bimg"><img src="{$r.thumb}" /></div>
				<div class="top_left_Simg clear fa">
                <?php
				$morepic_arr=explode("\r\n",$r["morepic"]);
				foreach($morepic_arr as $v){
					if(!$v){break;};
					$vs=explode("||",$v);
				?>
					<a href="javascript:;" class="left_Simg_list fl on"><img src="<?=$vs[1]?>" alt="<?=$vs[2]?>"/></a>
                <?php
				}
				?>
				</div>
			</div>
			<div class="productDetails_top_right fr">
				<div class="top_right_title">
					<div class="right_title_top">{$r.title}</div>
					<div class="right_title_price clear">
						<dd class="fl">价格</dd>
						<dt class="fl">
                        <span>￥{$r['price2']?$r['price2']:$r['price']} / 个</span>
                        <if condition="$r['price2']"><s>￥{$r.price} / 个</s></if>                        
                        </dt>
					</div>
				</div>
				<div class="top_right_content">
					<div class="right_content_list clear">
						<div class="content_list_left fl">型号</div>
						<div class="content_list_right fl">{$r.type_no}</div>
					</div>
					<div class="right_content_list clear">
						<div class="content_list_left fl">服务说明</div>
						<div class="content_list_right fl">
							<p>1：发货，并提供售后服务。</p>
							<p>2：因库存实时变化，请购买时确认库存数量。具体发货时间以实际发货为准！</p>
						</div>
					</div>
					<div class="right_content_list clear">
						<div class="content_list_left fl">采购量</div>
						<div class="content_list_right fl bottom_content_list">
							<i class="min fl" />-</i>
							<input name="" type="number" value="1" class="quantity fl" />
							<i class="add fl" />+</i>
						</div>
					</div>
				</div>
				<div class="top_right_bottom clear">
					<div class="right_bottom_left fl clear">
						<a href="javascript:add_shop_cart_andBuy({$r.id})" class="fl buy">立即购买</a>
						<a href="javascript:add_shop_cart({$r.id})" class="fl">加入购物车</a>
					</div>
					<div class="right_bottom_right fr">产品图片仅供参考</div>
				</div>
			</div>
		</div>

	
		<div class="productDetails_bottom clear">
			<div class="productDetails_bottom_left fl">
				<div class="bottom_left_title">销售排行榜</div>
				<div class="bottom_left_content clear">
                <cmsinfo table="cms_product" field="id,catid,title,thumb,type_no,price,price2" checked="1" order="sales desc" limit="5">
					<a href="{$v.titleurl}" class="left_content_list fl">
						<div class="content_list_img"><img src="{$v.thumb}" /></div>
						<div class="content_list_txt">
							<dd>{$v.title}</dd>
							<dt>商品型号：{$v.type_no}</dt>
							<p>¥{$v['price2']?$v['price2']:$v['price']}</p>
						</div>
					</a>
                </cmsinfo>
				</div>
			</div>
			<div class="productDetails_bottom_right fr">
				<div class="bottom_right_title clear">
					<a href="javascript:;" class="fl on">商品详情</a>
				</div>
				<div class="bottom_right_content">
					<div class="right_content_list">
					{:htmlspecialchars_decode($r[newstext])}
					</div>
			</div>
		</div>
	</div>
</div>

[!--public.footer--]
<script type="text/javascript" src="/t6/Public/skin/js/jquery-1.8.3.min.js"></script>
<script src="/t6/Public/skin/js/global.js"></script>
<script src="/t6/Public/Home/js/shop.js"></script>
<script src="/t6/Public/skin/js/nav.js"></script>
<script type='text/javascript' src='/Public/Home/js/globals.js'></script>
<script type='text/javascript' src='/Public/Admin/layer/layer.js'></script>
<script src="/t6/Public/skin/js/plugin.js"></script>
<script src="/t6/Public/skin/js/slick.js"></script>
<script type="text/javascript">
jQuery(".productDetails_bottom_right").slide({mainCell:".bottom_right_content",autoPlay:false,titCell:".bottom_right_title a",trigger:'click'});
$('.top_left_Simg').slick({
	autoplay:false,//自动播放
	slidesToShow: 4 ,//显示个数
	slidesToScroll: 1,//滚动个数
	accessibility:true,//启用Tab键和箭头键导航
	autoplaySpeed:5000,//自动播放间隔
	arrows: true,
	dots: false,
	speed: 500,
	infinite: false, //循环播放
	touchThreshold: 100,
	pauseOnHover: true, //速比移动上去禁止滚动
  })
$(document).ready(function(){
	var $miaobian=$('.left_Simg_list');
	var $huantu=$('.top_left_Bimg img');
	$miaobian.mousemove(function(){miaobian(this);});
	function miaobian(thisMb){
		for(var i=0; i<$miaobian.length; i++){
			$miaobian[i].style.borderColor = '#e5e5e5';
		}
		thisMb.style.borderColor = '#e50012';
	
		$huantu[0].src = thisMb.children[0].src;
	}
	function miaobian1(thisMb1){
		for(var i=0; i<$miaobian1.length; i++){
			$miaobian1[i].style.borderColor = '#e5e5e5';
		}
		$miaobian.css('border-color','#e5e5e5');
		thisMb1.style.borderColor = '#e50012';
		$huantu[0].src = thisMb1.children[0].src;
	}
})
</script>
</body>
</html>